package com.wmm.common.bean;


import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.wmm.common.bean.response.RestfulResponse;
import lombok.*;

/**
 * @ClassName:  ResponseResultDto   
 * @Description:TODO 响应DTO封装类
 * @author: wangzun
 * @date:   2018年3月20日 下午10:47:42   
 * @param <T>  
 */

@Getter
@Setter
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class ResponseResultDTO<T> extends RestfulResponse{
	private static final long serialVersionUID = -5426704416887620639L;
	private String message="";
	private int code;
	private T data;

	public ResponseResultDTO(T data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "ResponseResultDto [message=" + message + ", code=" + code + ", data=" + data + "]";
	}
}
